package com.aji.biomarker.service.impl;

import com.aji.biomarker.domain.Compound;
import com.aji.biomarker.domain.dto.CompoundDto;
import com.aji.biomarker.domain.dto.SpeciesDto;
import com.aji.biomarker.mapper.CompoundMapper;
import com.aji.biomarker.service.CompoundService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 82527
* @description 针对表【compound(化合物表)】的数据库操作Service实现
* @createDate 2024-05-14 18:47:39
*/
@Service
@RequiredArgsConstructor
public class CompoundServiceImpl extends ServiceImpl<CompoundMapper, Compound> implements CompoundService {

    private final CompoundMapper compoundMapper;

    public List<Compound> listDistinct() {
        return compoundMapper.selectDistinctList();
    }
    public List<CompoundDto> countByCname() {
        return compoundMapper.count();
    }
}




